package xy.web.timer;

import java.util.TimerTask;

import org.apache.log4j.Logger;

public abstract class AbstractTask extends TimerTask {
	protected String time;
	protected String period;
	
	protected Logger log = Logger.getLogger(AbstractTask.class);

	protected AbstractTask(){
		
	}

	protected abstract void execute() throws Exception;
	
	public void run() {
		try {
			
			this.execute();
			
		} catch (Exception e) {
			log.error(e);
		} finally {

		}
	}
}
